package org.dromara.tearoom.domain.vo;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.tearoom.domain.TerDoorEvent;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AutoMapper(target = TerDoorEvent.class)
public class TerOrderRoomVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 订单id
     */
    private String id;

    /**
     * 开发平台Id
     */
    private String openId;

    /**
     * 茶室名称
     */
    private String tearoomName;

    /**
     * 茶室id
     */
    private Long tearoomId;

    /**
     * 入住开始日期时间
     */
    private String startTime;

    /**
     * 入住结束日期时间
     */
    private String endTime;

    /**
     * 预定时间(h)
     */
    private float presetTime;

    /**
     * 订单状态（0-待支付 1-已确认 2-已入住 3-已完成 4-已取消）
     */

    private String orderStatus;

    /**
     * 订单总价
     */
    private double totalPrice;

    /**
     * 预付金额
     */
    private double prepayAmount;

    /**
     * 入住人电话
     */
    private String mobile;

    /**
     * 优惠劵id
     */
    private String couponId;

    /**
     * 支付方式（微信/支付宝）
     */
    private String paymentMethod;

    /**
     * 门锁密钥
     */
    private String doorKey;


    private String keyId;

    private LocalDateTime createTime;

    private String teroomImgurl;

    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "teroomImgurl")
    private String teroomImgurlUrl;

    private LocalDateTime viewStartTime;

    private LocalDateTime viewEndTime;

    private String isRenew;
}
